From a82d9727ae607af486540851d57f05c888e09b54 Mon Sep 17 00:00:00 2001 From: Adrian Bunk Date: Tue, 16 Sep 2025 19:50:00 +0200 Subject: [PATCH] HACK: QVTKOpenGLWindow.cxx: Define GL_BACK_{LEFT,RIGHT} for Qt with OpenGL ES Gbp-Pq: Name 83_allow_gles_platforms.patch --- GUISupport/Qt/QVTKOpenGLWindow.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/GUISupport/Qt/QVTKOpenGLWindow.cxx b/GUISupport/Qt/QVTKOpenGLWindow.cxx index 067e27cf..8844e424 100644 --- a/GUISupport/Qt/QVTKOpenGLWindow.cxx +++ b/GUISupport/Qt/QVTKOpenGLWindow.cxx @@ -34,6 +34,11 @@ #include "vtkObjectFactory.h" #include "vtkOpenGLState.h" +#ifndef GL_BACK_LEFT +#define GL_BACK_LEFT GL_BACK +#define GL_BACK_RIGHT GL_BACK +#endif + QVTKOpenGLWindow::QVTKOpenGLWindow(QOpenGLWindow::UpdateBehavior ub, QWindow* p) : QVTKOpenGLWindow(vtkSmartPointer::New(), nullptr, ub, p) { -- 2.30.2